package com.pashanhoo.designpatterns.singleton;

/**饿汉式
 * @author 胡庆安
 * @version V1.0
 * @Package designpatterns.singleton
 * @date 2020/10/27 16:41
 * @Copyright © 2010-2020 爬山虎科技（扬州）股份有限公司
 */
public class Hungry {
    private final static Hungry INSTANCE = new Hungry();

    private Hungry(){}

    public static Hungry getInstance(){
        return INSTANCE;
    }
}
